import * as types from '@/redux/mutation-types'
import { Dispatch } from 'react'

export const setMenuListAction = (menuList: Menu.MenuOptions[]) => {
  return {
    type: types.SET_MENU_LIST,
    menuList
  }
}

export const updateCollapse = (isCollapse: boolean) => {
    return {
      type: types.UPDATE_COLLAPSE,
      isCollapse
    }
  }
